

<div class="content_filtro">
    
    <?php if($this->per_add){?>
    <div class="content-btn">
        <span>Novo</span><a href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'editip', 'op'=> 'edit')); ?>">+</a>
    </div>
    <?php } ?>
</div>

<div class="content-list">
    
    <h2><?php echo $this->titulo;?></h2>
    
    <table id="tlist">
        <thead>
            <tr>
                <th>IP</th>
                <th class="bc">&nbsp;</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($this->result as $row) { ?>
                <tr>  
                    <td><?php echo $row['PHI_IP']; ?></td>
                    <td class="bc">
                        <?php if($this->per_edt){?><a class="btn-pdr" href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'editip', 'id' => $row['PER_ID'],'phi_id' => $row['PHI_ID'], 'op'=>'edit')); ?>">Editar</a><?php }?>
                        <?php if($this->per_del){?><a class="btn-pdr" href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'editip', 'id' => $row['PER_ID'],'phi_id' => $row['PHI_ID'], 'op'=>'delete')); ?>">Deletar</a><?php }?>
                    </td>
                </tr>
            <?php } ?>
        </tbody>
    </table>
</div>
<br><a href="<?php echo $this->urlbase.'/'.$this->modulo.'/permissao/'; ?>">Voltar  para Permissão</a>
<?php //echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml'); ?>
